package demo.java.parallelprogram.future;

import java.util.concurrent.Callable;

public class RealData implements Callable<String> {
	protected final String result;
	
	public RealData(String str){
		this.result=str;
	}
	
	@Override
	public String call() throws Exception {
		StringBuffer sb =new StringBuffer();
		for(int i =0;i<10;i++){
			sb.append(result);
			System.out.println("i:"+i);
//			Thread.sleep(100);
		}
		return sb.toString();
	}

}
